<div class='easyui-panel' noheader='true' style="padding:3px;" border='false' fit='true'><table id="userlist_tt"></table></div>
<script language="javascript">
/*列表控件*/
$('#userlist_tt').datagrid({
	title: '这里是测试数据'
	, fit: true
	, url: 'test.json'
	, singleSelect: true
	, pagination: true /*底部分页栏*/
	, rownumbers: true /*行号*/
	, pageList: [100, 200, 500]
	, loadMsg: '正在加载数据，请稍等 ...'
	, queryParams: {onlydata:1}
	, columns:[ [{field:'code',title:'Code',width:100}
			, {field:'name',title:'Name',width:100}
			, {field:'price',title:'Price',width:100,align:'right'}   
		]]  
	, toolbar:[{
			id: 'userlist_add'
			, text: '添加新用户'
			, iconCls: 'icon-add'
			, handler:function(){
			}
		},{
			id: 'userlist_input'
			, text: '导入外部数据'
			, iconCls: 'icon-reload'
			, handler: function(){
			}
		}] 
});

</script>
